<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>帮助管理</title>
     <script type="text/javascript" src="<c:url value='/static/js/admin/keywordAsk/fixedAttribute.js' />"></script>
</head>

<body>
<c:if test="${!empty msg}">
	<div class="alert alert-green fadein-top"><span class="close rotate-hover"></span><strong>提示：</strong>${msg}</div>
</c:if>
<div class="panel admin-panel">
	<div class="panel-head"><strong>帮助属性</strong></div>
	<div class="padding">
		<form id="form" method="post" action="<c:url value='/admin/keywordAsk/save' />" class="form">
			<input id="id" type="hidden" name="id" value="${keywordAsk.id}"/>
			<input id="type" type="hidden" name="type" value="${keywordAsk.type}"/>
			<div class="line">
				<div class="x3">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label for="stock">选项</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="keyword" name="keyword" value="${keywordAsk.keyword}" 
								placeholder="请填写选项" data-validate="required:必填,length#<=50:不超过50个字"/>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="line">
				<div class="x3">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label for="title">标题</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="title" name="title" value="${keywordAsk.title}" 
									placeholder="请填写标题" data-validate="required:必填,length#<=50:不超过50个字" />
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="line">
				<div class="x12">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label for="productBrief">回复内容</label>
							</div>
							<div class="field">
								<textarea class="input" id="replyContent" name="replyContent" 
									data-validate="required:必填,length#<=250:不超过250个字"
									placeholder="请填写回复内容">${keywordAsk.replyContent}</textarea>
							</div>
						</div>
					</div>
				</div>
			</div>
			<br/>
			<div class="form-button">
				<button id="save-btn" class="button bg-main" type="button">保存</button>
				<button onclick="locationHref('<c:url value='/admin/keywordAsk/list?type=${keywordAsk.type}' />')" class="button bg-gray" type="button">返回</button>
			</div>
		</form>
	</div>
</div>
</body>
</html>